package com.job.client.posts.controller;


import com.job.client.common.result.ResponseResult;
import com.job.client.posts.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 职位分类表 前端控制器
 * </p>
 *
 * @author fkl
 * @since 2023-12-06
 */
@RestController
@RequestMapping("/api/v1/client/posts/category")
@Api(tags = "分类服务接口文档")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @GetMapping("/list")
    @ApiOperation("获得分类列表")
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
    }
}
